package com.hgm.study.model.serice

import com.hgm.study.model.Network
import com.hgm.study.model.entity.ArticleInfoResponse
import com.hgm.study.model.entity.ArticleResponse
import com.hgm.study.model.entity.VideoInfoResponse
import com.hgm.study.model.entity.VideoResponse
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @author    HGM
 * @version   1.0
 */
interface VideoService {

      companion object {
            fun instance(): VideoService {
                  return Network.createService(VideoService::class.java)
            }
      }


      @GET("video/list")
      suspend fun getVideo(
            @Query("pageOffset") pageOffset: Int,
            @Query("pageSize") pageSize: Int
      ): VideoResponse

      @GET("video/info")
      suspend fun info(@Query("id") id: String): VideoInfoResponse
}